
public class AmericanFactory extends Factory{
private static AmericanFactory INSTANCE;
private AmericanFactory()
{

}
public static AmericanFactory getInstance()
{
	if(INSTANCE==null)
	{
		INSTANCE=new AmericanFactory();
	}
	return INSTANCE;
}
public Date genDate(int d,int m,int y){
	return new AmericanDate(d,m,y);
}
public Address getAddress(int sNr , String sNa,String town,int code)
{
	return new AmericanAddress("NY",sNr,sNa,town,code);
}
public PhoneNumber getPhoneNumber(String p)
{
	return new AmericanPhoneNumber(p);
}

}

